package com.iris.live.services.data.repositories;

import com.iris.live.services.data.models.BoutiqueModel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by yitianle on 2017/8/16.
 */
public interface BoutiqueRepository extends JpaRepository<BoutiqueModel, Integer> {

    @Query("select u from BoutiqueModel u where u.classifyId = ?1 and u.purchaseSource = ?2")
    List<BoutiqueModel> findListBySourceAndClassifyId(Integer classifyId, String source);

}
